package com.woniu.dao;


import com.woniuxy.commons.entity.QueryConditions;
import com.woniuxy.commons.entity.VacancyBank;
import com.woniuxy.commons.entity.VacancyBank;

import java.util.List;

/**
 * @program: bzeducation
 * @author: Xingqilin
 * @create: 2020-07-16 14:49
 * @description:填空题库查询
 */

public interface VacancyBankDao {

    //    通过ID查找具体选择题
    VacancyBank findVacancyById(Long vacancyId);

    //    通过问题描述模糊查询
    List<VacancyBank> findVacancyByTopic(Long subject, String topic);

    //    通过学期，分值，类别，知识点，出题时间，出题人查询问题
    List<VacancyBank> findVacancyByParams(QueryConditions queryConditions);


    int insertVacancyBank(VacancyBank vacancyBank);

    int updateVacancyBank(VacancyBank vacancyBank);

    int deleteVacancyBank(long vacancyId);
}
